package ntd.util.modular.function.util;

import cn.hutool.extra.spring.SpringUtil;
import ntd.util.modular.function.entity.Platform;
import ntd.util.modular.function.service.PlatformService;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class UtilPlatform {

    private static PlatformService platformService;

    @PostConstruct
    public void init() {
        platformService = SpringUtil.getBean(PlatformService.class);
    }

    public static Platform getById(String id) {
        return platformService.getById(id);
    }
}
